/*
 * RevenueSourceBO.java
 *
 * Created on March 7, 2007, 1:16 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package Data;

/**
 *
 * @author Danny Beutler
 */
public abstract class RevenueSourceBO {
    protected String id;
    protected String description;
    protected double price;
    protected boolean alreadyInDB=false;
    protected boolean dirty =true;
    /** Creates a new instance of RevenueSourceBO */
    public RevenueSourceBO(String id) {
        this.id=id;
    }
    
    public RevenueSourceBO() {
    }
    
    /** Gets the revenueSource GUID */
    public String getId() {
        return id;
    }
    
    /** Gets the revenueSource Description */
    public String getDescription() {
        return description;
    }
    
    /** Sets the revenueSource Description */
    public void setDescription(String description) {
        this.description = description;
    }
    
    /** Gets the revenueSource Price */
    public double getPrice(){
        return price;
    }
    
    /** Sets the revenueSource price */
    public void setPrice(double price) {
        this.price = price;
    }
    
    /** Calculates the price and set's it to the revenueSource price */
    public abstract void calculatePrice();
    
    /** Gets the revenueSource isAlreadyInDB variable */
    public boolean isAlreadyInDB() {
        return alreadyInDB;
    }
    
    /** Sets the revenueSource isAlreadyInDB variable*/
    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
    }
    
    /** Gets the revenueSource dirty variable */
    public boolean isDirty() {
        return dirty;
    }
    
    /** Sets the revenueSource dirty variable */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }
}
